import request from '@/utils/request'

// 查询英雄康特列表
export function listCounterList(query) {
  return request({
    url: '/lol/counterList/list',
    method: 'get',
    params: query
  })
}

// 查询英雄康特详细
export function getCounterList(id) {
  return request({
    url: '/lol/counterList/' + id,
    method: 'get'
  })
}

// 新增英雄康特
export function addCounterList(data) {
  return request({
    url: '/lol/counterList',
    method: 'post',
    data: data
  })
}

// 修改英雄康特
export function updateCounterList(data) {
  return request({
    url: '/lol/counterList',
    method: 'put',
    data: data
  })
}

// 删除英雄康特
export function delCounterList(id) {
  return request({
    url: '/lol/counterList/' + id,
    method: 'delete'
  })
}
